package com.example.thymeleaf2.service;



import com.example.thymeleaf2.domain.Article;
import com.example.thymeleaf2.mapper.ArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service
public class ArticleService {
    @Autowired
    ArticleMapper articleMapper;
    public List<Article> findAll(){return articleMapper.findAll();}
}

